import request from "@/utils/request";

// 查询福利管理列表
export function listCldWelfareSend(query) {
  return request({
    url: "/cld/CldWelfareSend/list",
    method: "get",
    params: query,
  });
}

// 查询福利管理详细
export function getCldWelfareSend(welfareSendId) {
  return request({
    url: "/cld/CldWelfareSend/" + welfareSendId,
    method: "get",
  });
}

// 查询福利发放详细
export function getCldWelfareSendDetails(query) {
  return request({
    url: "/cld/CldWelfareSend/detailsList",
    method: "get",
    params: query,
  });
}

// 新增福利管理
export function addCldWelfareSend(data) {
  return request({
    url: "/cld/CldWelfareSend",
    method: "post",
    data: data,
  });
}

// 修改福利管理
export function updateCldWelfareSend(data) {
  return request({
    url: "/cld/CldWelfareSend",
    method: "put",
    data: data,
  });
}

// 修改福利发放明细
export function updateDetails(data) {
  return request({
    url: "/cld/CldWelfareSend/updateDetails",
    method: "put",
    data: data,
  });
}

// 删除福利管理
export function delCldWelfareSend(welfareSendId) {
  return request({
    url: "/cld/CldWelfareSend/" + welfareSendId,
    method: "delete",
  });
}
